FROM ubuntu:22.04

LABEL maintainer="Zheng Qijun <zhengqijun0121@qq.com>"

ARG DEBIAN_FRONTEND=noninteractive

RUN apt update && apt install -y --no-install-recommends ca-certificates && \
    sed -i 's/http:\/\/ports.ubuntu.com/https:\/\/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list && \
    apt update && apt install -y --no-install-recommends cmake build-essential sudo python3-pip lcov ccache gdb gdbserver && \
    rm -rf /var/lib/apt/lists/* && \
    echo 'root:111111' | chpasswd && \
    pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \
    pip3 install colcon-common-extensions

ENV SHELL /bin/bash
ENV HOME /root
ENV USER root

WORKDIR $HOME

# ENTRYPOINT ["/bin/bash"]

# EXPOSE 22

# docker buildx build --platform linux/arm/v7 -t zhengqijun0121/demo:dev-arm --push .

# EOF

